 package com.xc.controller.protol;

 import com.xc.common.ServerResponse;
 import com.xc.service.IUserPositionHistoryService;
 import com.xc.service.IUserPositionService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.ResponseBody;

 import javax.servlet.http.HttpServletRequest;

 @Controller
 @RequestMapping({"/api/app/user/positionHistory/"})
 public class UserPositionHistoryController {
     private static final Logger log = LoggerFactory.getLogger(UserPositionHistoryController.class);

     @Autowired
     IUserPositionHistoryService iUserPositionHistoryService;

     //新股中签历史记录
     @RequestMapping({"opNewStockHistory.do"})
     @ResponseBody
     public ServerResponse opNewStockHistory( @RequestParam(value = "id") int id) {
         return this.iUserPositionHistoryService.opNewStockHistory(id);
     }
 }

